<script language="javascript">
var notAllow = " {$f} ";
</script>
<style type="text/css">
<!--
.nw { float:left; width:150px; }
.cls { clear:both; }
-->
</style>
<form name="form1">
    <!-- 基本属性 -->
    <div class="Item hr">
        <div class="current">{$model['name']}（{:C("DB_PREFIX")}{$model['addtable']}）- 字段基本属性</div>
        <div class="fr"><a class="btn" href="{:U('models/show', array('id' => $mid))}">返回当前模型</a></div>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
    <tbody>
    <tr> 
      <th>表单提示文字：</th>
      <td>
      	<input type="text" class="input" id="field_label" name="field[comment]" /> * <span onclick="ShowHide('help_field_label')" class="icon-question-sign hand" title="帮助"></span> <span id="help_field_label">（发布内容时显示的提示文字）</span></td>
    </tr>
    <tr> 
      <th width="100">字段名称：
      </th>
      <td> 
        <input type="text" class="input" id="field_name" name="field[name]" /> * <span onclick="ShowHide('help_field_name')" class="icon-question-sign hand" title="帮助"></span> <span id="help_field_name">（只能用英文字母或数字，数据表的真实字段名。）</span>
       </td>
    </tr>
    <tr> 
      <th>数据类型：</th>
      <td>
        <volist name='fieldtype' id='typetext' mod='3'>
<div class="nw"><label><input type="radio" <eq name="i" value="1">checked="1"</eq> value="{$key}" name="field[type]">{$typetext}</label></div>
		<eq name="mod" value="2"><br class="cls"></eq>
		</volist>
       </td>
    </tr>
    <tr> 
      <th>默认值：</th>
      <td> 
      	<textarea  class="jq_watermark" rows="5" cols="100" id="vdefault" name="field[value]" placeholder='如果定义数据类型为select、radio、checkbox时，此处填写被选择的项目(用","分开，如"男,女,人妖")。'></textarea>
      </td>
    </tr>
    <tr> 
      <th>最大长度：
      </th>
      <td>
      	<input type="text" style="width:80px;" value="250" class="input" id="maxlength" name="field[length]"> <span onclick="ShowHide('help_maxlength')" class="icon-question-sign hand" title="帮助"></span> <span id="help_maxlength">（文本数据必须填写，大于255为text类型）</span>
       </td>
    </tr>
</tbody></table>
    <input type="hidden" name="field[model_id]" value="{$model['id']}" />
</form>
<div class="commonBtnArea" >
    <button class="btn submit">提交</button>
</div>

<include file="Fields:javascript" />
<script type="text/javascript">
$(function(){
    submitForm("create");
});
</script>
